import request from '@/utils/request'
import { Console } from 'console'
// 获取评价活动列表
export function getActivityData(state) {
    console.log("getActivityData")
    return request({
      url: '/pingjiao/student/getActivityList/'+state,//state参数2获取当前正在进行的活动  state参数4 获取已经结束的活动
      method: 'get',
      timeout: 20000
    })
  }
// 获取评价活动教师列表
export function getTeacherData(evalutionActivityId) {
    console.log("getTeacherData",evalutionActivityId)
    return request({
      url: '/pingjiao/student/getTeacherList/'+evalutionActivityId,
      method: 'get',
      timeout: 20000
    })
  }

  // 通过courseType，teacherId，teacherName，courseclassId，evaluationActivityId获取评价问卷详情
export function getQuestionDetail(evaluationId) {
  return request({
    url: '/pingjiao/student/getPaper/'+evaluationId,
    headers: {
      isToken: true,
    },
    method: 'get',
    timeout: 20000,
    // params:data
  })
}


  // 提交数据修改评价问卷详情
  export function submitVo(data) {
    console.log("submit data",data)
    return request({
      url: '/pingjiao/evaluation/submit',
      headers: {
        isToken: true,
      },
      method: 'post',
      timeout: 20000,
      data:data
    })
  }
